﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Web;
using System.Web.Mvc;
using LegacyMusic.Data;
using LegacyMusic.Data.Repositories;
using LegacyMusic.Models;
using Ninject;

namespace LegacyMusic.Controllers
{
    public class HomeController : Controller
    {
        [Inject]
        public ISongRepository SongRepository { get; set; }

        public ActionResult Index()
        {
            var model = new HomeModel();

            //model.Songs = _songRepository.GetSpecificSongs(p => p.Title == "King of fools", null, null).ToList();
            var song = Song.CreateSong(Guid.NewGuid(), "aa", DateTime.Now, new Guid("DCD6E359-7751-4904-A7B1-BAA7CF108171"));
            
            //SongRepository.AddSong(song);

            return View(model);
        }
    }
}
